import request from '@/utils/request'

// 查询工会主播分成结算列表
export function listUserUnion(data) {
  return request({
    url: '/admin/userUnion/pageList',
    method: 'post',
    data: data
  })
}

// 查询工会主播分成结算详细
export function getUserUnion(id) {
  return request({
    url: '/admin/userUnion/query/' + id,
    method: 'get'
  })
}

// 新增工会主播分成结算
export function addUserUnion(data) {
  return request({
    url: '/admin/userUnion/add',
    method: 'post',
    data: data
  })
}

// 修改工会主播分成结算
export function updateUserUnion(data) {
  return request({
    url: '/admin/userUnion/update',
    method: 'post',
    data: data
  })
}

// 删除工会主播分成结算
export function delUserUnion(id) {
  return request({
    url: '/admin/userUnion/delete/' + id,
    method: 'delete'
  })
}

// 导出工会主播分成结算
export function exportUserUnion(query) {
  return request({
    url: '/admin/userUnion/export',
    method: 'get',
    params: query
  })
}
